/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package servidorcorreiosrest;

import com.sun.grizzly.http.SelectorThread;
import com.sun.jersey.api.container.grizzly.GrizzlyWebContainerFactory;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author cpaz
 */
public class ServidorCorreiosREST {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        final String baseUri = "http://localhost:9998/";
        final Map<String, String> initParams = new HashMap<String, String> ();
        initParams.put("com.sun.jersey.config.property.packages", "servidorcorreiosrest.resources");
        SelectorThread threadSelector = GrizzlyWebContainerFactory.create(baseUri, initParams);
        System.in.read();
        threadSelector.stopEndpoint();
        System.exit(0);
    }
}
